<template>
  <view class="back">
    <image src="https://pockets.qixdian.cn/upload/20240711/668f855ee8137.png"
           mode="scaleToFill"
           class="icon"
           @click="back" />
    <view class="title">{{title}}</view>
  </view>
</template>
<script>
export default {
  props: {
    title: {
      type: String,
      default: ''
    }
  },
  data () {
    return {
      message: this.title
    }
  },
  methods: {
    back () {
      // if (this.status) {
      //   this.$emit('jump')
      // } else {
        uni.navigateBack()
      // }

    }
  }
}
</script>
<style lang="scss" scoped>
.back {
  padding: 0 30rpx;
  position: relative;
  .icon {
    width: 60rpx;
    height: 39rpx;
  }
  .title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 40rpx;
  }
}
</style>
